package com.bjpowernode.crm.workbench.mapper;

import com.bjpowernode.crm.workbench.domain.ActivityRemark;
import com.bjpowernode.crm.workbench.domain.ClueRemark;

import java.util.List;

public interface ClueRemarkMapper {

    /**
     * 根据clueId查询该线索下所有的备注
     * @param clueId
     * @return
     */
    List<ClueRemark> selectClueRemarkForDetailByClueId(String clueId);

    /**
     * 保存创建的线索备注
     * @param remark
     * @return
     */
    int insertClueRemark(ClueRemark remark);

    /**
     * 根据id删除线索备注
     * @param id
     * @return
     */
    int deleteClueRemarkById(String id);

    /**
     * 保存修改的线索备注
     * @param remark
     * @return
     */
    int updateClueRemark(ClueRemark remark);


    /**
     * 根据clueId查询该线索下所有的备注信息
     * @param clueId
     * @return
     */
    List<ClueRemark> selectClueRemarkByClueId(String clueId);

    /**
     * 根据clueId删除该线索下所有的备注
     * @param clueId
     * @return
     */
    int deleteClueRemarkByClueId(String clueId);
}